<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form id="myform" action="https://www.itbaizhan.com" onsubmit="submitHandle">
        <input type="text">
        <button id="resetBtn">重置</button>
        <button>提交表单</button>
    </form>

    <script>
        var resetBtn = document.getElementById("resetBtn")
        var myForm = document.getElementById("myform")
        resetBtn.onclick = function () {
            myForm.reset(); 
        }

        function submitHandle(){
            console.log("自己想做的事情");
        }

    </script>
</body>

</html>